import { Ajax } from '@/util/HttpUtil'

// 获取订单列表
export const orderList = orderInfo => {
  return Ajax('/order/list', orderInfo)
}

// 修改订单信息
export const updateOrder = orderInfo => {
  return Ajax('/order/edit', orderInfo, 'post')
}

// 查询订单信息
export const searchOrder = orderInfo => {
  return Ajax('/order/search', orderInfo)
}

// 获取订单详情
export const getOrderDetail = id => {
  return Ajax('/order/detail', { id })
}

// 订单报表的接口
export const orderStatementInfo = date => {
  return Ajax('/order/ordertotal', { date })
}

// 首页报表数据
export const indexStatementInfo = () => {
  return Ajax('/order/totaldata')
}
